/**
 * 
 */
package br.com.projetospring.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import br.com.projetospring.dao.impl.UsuarioDao;
import br.com.projetospring.entity.Usuario;

/**
 * @author Joelson
 *
 */
@Component("usuarioService")
@Service("usuarioService")
public class UsuarioService {
	
	@Autowired
	private UsuarioDao dao;
	
	public List<Usuario> buscarTodos(){
		return dao.buscarTodos();
	}

	public UsuarioDao getDao() {
		return dao;
	}

	public void setDao(UsuarioDao dao) {
		this.dao = dao;
	}
		
}
